<template>
  <div class="clearfix">
    <span class="img">
      识说
    </span>
    <div class="search"><Search></Search></div>
    <span class="shouye">首页</span>
    <span>注册 | 登录</span>
  </div>
</template>

<script>
  import Search from "@/components/TopBar/Search";
  export default {
    name: "TopBar",
    components:{
      Search
    }
  }
</script>

<style scoped lang="less">
  div{
    display: flex;
    font-size: 20px;
    .img{
      flex: 3;
      position: relative;
      &:before{
        display: block;
        position: absolute;
        left: 65px;
        float: left;
        content: "";
        width: 40px;
        height: 40px;
        background-size:40px 40px;
        border-radius: 20px;
        background-image: url(https://s1.ax1x.com/2020/07/17/Uy8PWn.png);
        background-position: 0 0;
        margin-top: 10px;
        background-color: #fff;
      }
    }
    .search{
      flex: 6;
      display: flex;
      justify-content: center;
    }
    Search{
      flex: 6;
      display: flex;
      justify-content: center;
    }
    span{
      flex: 2;
    }
    .shouye{
      color: #409EFF;
    }
  }
</style>